package cn.wolfcode.ssm.service;

import cn.wolfcode.ssm.domain.Customer;
import cn.wolfcode.ssm.query.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ICustomerService {
    void save(Customer customer);
    void delete(Long id);
    void update(Customer customer);
    Customer get(Long id);
    List<Customer> listAll();
    // 分页查询的方法
    PageInfo<Customer> query(QueryObject qo);

    Customer selectCheckTel(String tel);

    String selectTelById(Long id);

    void updateStatus(Long id ,Integer status);

    void updateSeller(Long sellerId,Long customerId);

    // 查找所有潜在客户
    List<Customer> selectStatus();
}
